package com.kylefu.design.pattern.builder;

public class Product {

  private String name;
  private String color;
  private Integer size;

  protected void setName(String name) {
    this.name = name;
  }

  protected void setColor(String color) {
    this.color = color;
  }

  protected void setSize(Integer size) {
    this.size = size;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("Product{");
    sb.append("name='").append(name).append('\'');
    sb.append(", color='").append(color).append('\'');
    sb.append(", size=").append(size);
    sb.append('}');
    return sb.toString();
  }
}
